package com.st.service.impl;

import java.util.List;

import com.st.dao.IEmpDao;
import com.st.dao.impl.EmpDaoImpl;
import com.st.entity.Emp;
import com.st.service.IEmpService;

public class EmpServiceImpl implements IEmpService{

	private IEmpDao empDao = new EmpDaoImpl();
	
	@Override
	public List search(Emp emp) {
		return empDao.select(emp);
	}

	@Override
	public int modify(Emp emp, String oldpassword, String newpassword, String newpassword2) {
		return 0;
	}

	@Override
	public int update(Emp emp, int id) {
		return 0;
	}

	@Override
	public int remove(int id) {
		return empDao.remove(id);
	}

	@Override
	public int add(Emp emp) {
		return empDao.insert(emp);
	}

}
